package com.yunji.framework_template.books.biz.service;

import com.yunji.framework_template.books.orm.persistence.model.BooksType;
import com.yunji.framework_template.books.orm.persistence.mapper.BooksTypeMapper;
import com.yunji.framework_template.common.web.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by fenglibin on 2019/01/24.
 */
@Service
public class BooksTypeService {

	@Autowired
    private BooksTypeMapper booksTypeMapper;
    
    public int deleteByPrimaryKey(Integer id){
        return booksTypeMapper.deleteByPrimaryKey(id);
    }

    public int insert(BooksType record){
        return booksTypeMapper.insert(record);
    }

    public int insertSelective(BooksType record){
        return booksTypeMapper.insertSelective(record);
    }

    public BooksType selectByPrimaryKey(Integer id){
        return booksTypeMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(BooksType record){
        return booksTypeMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(BooksType record){
        return booksTypeMapper.updateByPrimaryKey(record);
    }

    public List<BooksType> selectByCondition(BooksType record){
        return booksTypeMapper.selectByCondition(record);
    }

    public List<BooksType> selectAll(){
        return booksTypeMapper.selectAll();
    }

    public List<BooksType> selectByPage(Page<BooksType> page){
        return booksTypeMapper.selectByPage(page);
    }

    public Integer count(BooksType record){
        return booksTypeMapper.count(record);
    }

    public int deleteByCondition(BooksType record){
        return booksTypeMapper.deleteByCondition(record);
    }

}
